export const route_prefix = 'admin/';

export default [
  {
    path: '/',
    component: '@/pages/root',
    routes: [
      { path: '/login', component: '@/pages/Login', title: '登录' },
      {
        path: '/' + route_prefix,
        component: '@/layoutSod/index',

        routes: [
          {
            path: `/${route_prefix}dva`,
            component: 'dva',
            wrappers: ['@/wrappers/auth'],
          },
          {
            path: '*',
            component: '404',
          },
        ],
      },
    ],
  },
  {
    path: '*',
    component: '404',
  },
];
